Fix unstability.

Fix proposed by @1k5. Thanks1