Fixed an invalid read.