fix bug causing background to stop