fixed smarty and php