Bug, cannot use repository

User can't use repository if it came to grid from preview mode
Merge pull request #543 from TheFOBas/patch-1

User can't use repository if it came to grid from preview mode