fixing night bugs