fixed bugs in play install script