fixed `add project` logic