fix a bug with zoom