small fixed, enforcing target to be a matrix