Fixed problem with unknown index error (Issue #135).

Problem didn't exist in the J!2.5 version.