Fixing race condition on monitor, issue #42