Fix for .resize() event