fixed clearance error after adding it to JS code