fixed plugin router hook