fix loading config in plug