If your frosting is too runny, it could be because the cream cheese or butter was too warm. Pop it in the fridge for 20-30 minutes to firm it up. Also, try whipping it a little longer to incorporate more air, or add a bit more powdered sugar to thicken it.