fix an annoying bug