added patch for decorates_before_render