fix multiple bugs
support dims from info