SERVER: Fixed bug in handling InternalServerError