fix bug by avoid optimizing already optimized bytecode sequence