bug fix for background