Fix loading functions.