Fixed error in server