fix master resource reader trigger condition