Fix bug when zoom is undefined