* Fixed bug in new_record() causing JS error.