fixing trampoline bug