Fixed some input bugs, template gets cloned now