Investors were spooked by a shrinking operating margin, on higher spending for R&D and product development