Fixed off by one on setting