Minor bugfixes

A few minor fixes picked up from using the package with https://github.com/CoderKungfu/php-queue