fixing resize issues