Fix loading library does not update attributes