partially fixes attachment manager