Prevent nonpositive integer errors