Error Fix for empty orders