Oeps.. fixed bug in setting the active profile