Fixed initial resizing problem.