Fix bug in input type attribute