fixed NPE occurred when schema is missing