fixing brightness increment code

thanks darkmoonsinger for the tips