Fix some errors in status code.