fixed bug with profile appending