fixed template manipulation
works like a charm!

Signed-off-by: Sweil <mail@sweil.de>