fixed components scripts (check for define)