Fixed some grid settings bugs.