Fixes incorrect error_reason() type specification