The cream cheese and butter may have been too soft when you started, or the frosting might need more powdered sugar. If your frosting is runny, try chilling it for a bit to firm it up.