fixed resize handler binding