Bug fix to background behavior