attempt to fix issue with empty dims entries. related to issue #28