fix for dtype warning
fix for S = full space