Protect fixes (errors in R engine found by ueacheck).