Fixed deliver not working on ruby < 2.0