Make sure your cream cheese is fully softened before mixing. Also, sift the powdered sugar before adding it to the mixture to avoid lumps.