Update: fixed id problem where it was id + 1 instead of id