fixed wrong grid positioning