Fix for potential bug

Only thing I can see that may cause a server to crash?