Fix fatal error in mod_jem_cal #333