mem handler fixed