fix tree keyboard expand/contract