fix a bug that File class hasn't been found.