fixed bug when initiating a new resize when one is already in progress.