fixed level inheritance issue in snippet selection