Fixes attachment length