Fixed bug in rmpool