Fixed nil snippet