memhandler error fixed