fixing bug when chrome opens for the first time