Fixed dereferencing issue