fix build -- priority needs to be converted to the right type