version 1.4: fix some bugs