fix a bracket issue and a repository issue