prevent circular extends. Fixes gh-282