fix scap error in grid layout