Fixed installation bugs.