bag fix with errors