fixed gridToString