fixed a bug in moving contacts across stages