Fixed issue with server crash as referencing client only variable