Fixed errors in testloadsave and leMain