Fixed NPE bug with turtle and table