Fixed mass replace error