Hopefully fixed eventual randmap mem issues

Signed-off-by: Gerco van Heerdt <gercovanheerdt@gmail.com>