Fix flat background bug