Once you have glued the pipe and socket, you can't fix the mistake. In this case, you need to restart the alignment process with new pieces of pipe and fittings.