Fix a typo shalow -> shallow (close #581)