[FIX] undefined variables, smarty defaults