fix ane bugs