The dough may have been too warm when it was piped onto the sheet pan, which caused it to spread too much. Using warm baking sheets will also cause spritz cookies to spread and flatten.