Fix for backgrounding.