Fixed crash in monitor mode