fixed error in local memory size