Avoid resetting input in toplevelblock

Change-Id: Ia0e8b21e555d4a7ef9bc261c52200d85af3c6611