Corrected backwards compatibility issue with JOI 3.x