Fixed add/cancel/add bug in repositories frame