Fix bug where coefficient vector wasn't cleared on each run