fixed bug in postinstall