Removed synhcronization bug in monitor