fixed some possible runtime exceptions with offline players