Fixed background.js bug