Fixed bug in zoom code.