fix black background bug