fix install dir and other.