Fix doctest error

Fix doctest error that was created by adding the coef property.