Fix error on installation.

#4577