fixed a bug with grid layout manager and headers