Fixed a bug causing 100 percent CPU spike on SSH monitor