Fixed error with chrome popup