Fixed fucking off by one error