fixed BBTree alignment bug