fixed non unique result when updating student