Minor prompt bug and bad fclose