fix update record check