record saving bug partially fixed