#509 fix smarty error