error correction on order and restaurant controller