Fix bug returning 1 for Chrome.