fix bug

adapt size of covmat without subsequent adaptation of shape