fix for linalg.py