fix orm exception