Fixed an issue with templates in the PySide main file