fixed some wrong written code (remove_process)