Fix device merging
Fix adding project id
Fix adding programme id