Fixed probably cause of occassional crashes when launching client