Fixed modal errors.