Fix error when tempMob is nil