Fixed bug that would allow to switch active profile while logging data.