Fix errors when calling :disable action on generate_model