minor glitch fixes