Fix RestFormMixin errors bug