fixed a VERY ANNOYING bug