Fixed a typo,and use `double` as the zoom type instead of int(it is not good in some cases)