Fixed broken loader code.