Fix -1 bug with /p auto