bug fix for getbasis