Fixing a bug related to the background