Issue #1639. changed "entity" to "define" to pull the correct rbKey.