fix for server

fix this http://pastebin.com/vSZMc4Ed

and a big thanks for your work