Found cause of bug