more defensive code
added OS X MagnificationListener