bugfix in epoch definition stage.