Unnecessary flash of black background fixed