Fixed error when data.access is undefined