fixed bug if no daemon should be used