fix flex grid #1068