fix memory smash

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>