missed setting a default value to -1 as per code review