fix block length bug again