fixed turn bug in server