fixed bug causing service to randomly crash
Merge remote-tracking branch 'origin/master'