fix multiple dimensions. Update on multiple dimensions seems to be still broken