workaround netbsd nan bug
allow zoom to 1/256