Fix cycles for use with Smiley parser