fix a height refresh bug