Logic: Fixed problems for incorrect input id.