Bugfix with temp pwfile