quick fix to server method bug