fix a bug in manage-imports serialization