fixed resize.c