Fix scope of data variable in getCurrentUserData() method