fixing backgroup mode not working problem