This could be because you didn't shake the cocktail shaker enough so not much air got into the drink. Really make sure to vigorously shake for at least 20 seconds to get that frothy top. Also, if you're not using freshly brewed espresso, you won't get a frothy top.