Fixed small bug loading RestCommand instances