fixed record not being updated