fix usage of bind_shape_matrix
do tr -d \r