Fix gridlines when using categories. Close #18.