fixed the multiple update issue