repairs a bug in rewriterule engine: constructor cannot be used as a pattern