Update server.pl

Bug Fixes