make sure level number is positive