Fix a bug in background