Fixed ResizeFrame bug