fixed compilation with older clang versions (nw)
Fixed dfruit and lastbank regression. (nw)