Fix: Added a flag to avoid the stop to stop transition in the profiler
I detected a transition in the profiler that shouldn't be allowed, so I added a new flag to manage it. Also a new test case have been added, as some other little changes in the code.