Fixing a minnor bug in the server
[ fixed #24]