Error: '-1' is not a valid value for: x