Fix for libs + quit