[support] Error when updating custom code to d7