fix house monitor code