Fix logic error in memory access

Signed-off-by: Brian McGillion <brian.mcgillion@intel.com>