Fix for data load from global memory (#17)