tic: Fixed minor bug in resizing