Fix a bug with look at matrix