Fix for automated window ids

For some reasons the id's of some window parts were not being set before
the template renders even though the scope.id got set.