Another bug fix for module overrides

This fixes a small logic error. Looks like a copy/paste error.