fixed stupid bug in master where work remaining was not decremented
fixed another silly bug in Master