Second attempt at fixing the crash when getting the frame's item damage