Fixed a bug regarding to device monitors.