fix fix for resize