fix some warnings in linalg