storing records bug fixed