fixed error with mode variable
Merge branch 'master' of https://github.com/johnmgregoire/JCAPdepositionmonitor