fixed bugs on browsers