Fixed Mis-named memory variable