Fix dereferencing something that's not a reference