check value before set zoom