Grid lines now drawn correctly