Fixes #1 bug in chrome