fixed an annoying bug