fix a bug with dim id retreival