Chief exec, finance director buy shares post profit warning