Fix record data size check