Fix scaling event not firing sometimes. Thanks @rcyrus.