Fixed global attribute error when backend changes.