several bugs fixed
Merge branch 'master' of https://github.com/maninsoft/smartworksV3.git