fix for the duplicated stages