Fix bug in memmon