A note on starshaped compact hypersurfaces with a prescribed scalar curvature in space forms