fixed plugin insertion