Fixed data not being inserted