fix weird bug with plugins