Some fix on exception with FileMonitor