fix statchains bug