Two fixes

- Fix loading 'locked' from settings
- Fix R code for handling gene names