correct error when profile editiong