Fix height resize problem