fixed issue with server crashing on post