fix bright and dark bug