Fixed bug for not loading smarty class