Ignore state transitions inside the loop command

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>