bug fix for components offset