Fix scanf issue by adding dummy check.