fixed errors when no user registered for order