fixed lifecycle script call