fixed bug in endcap