Fixed nullpointerException in SimpleTasker