fixed bug in localrecords