Remove undefined behaviour from poolboy