Used correct cursor