Fix JVM Error, directory data type