fixed postrm script