resize fixes