improve logic when parsing string for arguments
patch transition scene to make consistent the order of call of scene deletion and transition finish.