fix broken resize