fixed bug with first height