fixed expanded coef bug
merged bugfix