Fix extra lines in trap