Fixed a little bug, which may crash veeeery badly. Thanks to foxblock for his very usefull reproduction explanations