Fix record edition when index is equal to 0.