Fix morgan deprecation warning.
Merge pull request #431 from XhmikosR/fix-morgan-deprecation-warnings

Fix morgan deprecation warning.