fixed problem with work retrieval from daemon