Fix resize issues