Bug correction for external library usage