fixed A star initialisation bug which happened when last run was aborted before finalizing