fix gridposition