fixed background js bug