Fixed bug in snippet layout during snippet creation