Red light function has little bug