fix small logic error in healthscript