Fixed missing reference date constraint