Fix hide-grids option