Fixed bug with checking for 2dtoolkit