memory error: rost issue #9