Remove null assignments in monitor