Upgrade to 4.2.0 stable and fix DEPRECATION WARNING