fix php cleanup