Fixed off by one error that messed up features.