fixed resize handler