Fix hidden input appending