Fixes respond to error