Fixes error condition