check for custom_dimension before using it, correct error msg