fixed study deletion and copying