Adjust cursor after inserting imports for seamlessness

Refs #1