fixing duplicated event emission for changed route