[Amibe] Skeleton: fix a possible infinit loop