fix #17; fix #16; just avoid and improve a little
bugfix padclientid while null