remove undefined int from template