fixed medium grid issues