fixed a bug with zoom