fix and delete monitor relational script