Fixed setBarHeight animation