woopsie: fixed heap corruption bug