Fixed level off-by-one mistake