small tweak to dimension handling