bug in psr_template