small improvement to fix a crash
Merge pull request #1015 from williampma/SmallChange

R2L/SuReal: small improvement to fix a crash