Fixing zoom bug