Fixed NPE in checkTools