CFY-1187 fixed bug in server.py