Thank you, it was indeed a problem with where and how i initialized my transformer.

//Sven