fixes compatibility bugs for PS1.4.5 (hook / smarty 2 issues)