fixed scripts loading