bug for module update detection

should merge params and data if data is passed in not if params exists,
as params will always exist.