Prevent a few possible errors.