Fix freeze on start up.