fixed assertion for data update