fix possible potential bug
Merge branch '21-misc-cleanup' into 23-more-dotcode
fix bug