fixed nasty snapshot bug, thanks to Aurelien!