fix broken libraries