Different work computation, bug fix for x hist