Quickfix of error_code func