fix quota error handling