load-fragment: fix bad memory access