Improve fillZeros function for Chrome.