BF: fix broken example
BF: fixed reshape error when #samples < #params
BF: fixed reshape error when #samples < #params