Fixed something wrong with local loading