bug fix for deep link edge case