fix #16 - return instead of commitDone