fix browser bugs
Merge pull request #197 from mangix/master

fix browser bugs