Fix bug in background