Fix wrong reference bug and add new version