Fixed bug in monitoring service