fixed auto window height after update