added the missing sanity check in case the master changed