Fixed #4 - issue with upgrade clearing profiles