If you beat the powdered sugar into the butter before adding the cream cheese, the frosting should not be runny. If it is, the butter and cream cheese may be too warm. Add more powdered sugar to thicken it. Or chill the frosting for a bit to firm it up.