fixing resize