fixed caching problems with param and define tags