removed the logical bug raised in the issue.
removed the logical bug.