Fixed off-by-one error where unitFeatures() was called.