fixes inputPositiveNumber directive