Fix bug in background changing feature