Fix fencepost error