fixing deprecation notice for morgan