Prevent infinite loop in fromSLV code