fixed an error by converting from indices space to physical space
problem with merging