Add defensive code for whratio.