Fixed the coefficient bug