Some corrections to previously reimplemented memory monitor code

Signed-off-by: Simon Busch <morphis@gravedo.de>