fixed #4 (bug with zoom)