Fixing monit code