fixed bugs on chrome