Grid displaying improperly