fix tiny memleak when $top is used wrong