This fixes plugin insertion for 3.0

Warning: this will break backwards compatibility as the API works different!