fixes error on last stage