Error solved with using of a parameters.
This solution actually works but will be remove later when a better way will be found. See ClientResourcesConfig for more information about that.