Fixes to attachment length