prevent aliases being defined recursively to fix #524