Fixing a sudden bug - unknown reason