fixed refernce to local memory fields