fix some code snippets for BuildLoader examples