corrected error with snippet rendering