server mod

REmoved wierd typecast.
Debug the servger