Fixed issue of keys not reset after each run.