Fixed some deprecation warning

According to https://github.com/senchalabs/connect/wiki/Connect-3.0