Hopefully prevent unexpected nil errors.