Fixed bug in call to snap().