fix ref-to-temp warning (meh)