fixed copying of the old credentials