Prevent a crash involving attributes