fix minor glitches