Fix asset loading bug