fixed bug in basis evaluation