Fixed some error codes