Quick tweak to print proper output when cursor exhausted