Fix record cursor bug