fixing idiotic bug