Fixed issue and moved canDecorate before createLocator.