Removed some error code