when running on cordova the fields might be empty in which case they need to be initialized before being used
Merge remote-tracking branch 'origin/master'