Fix code style issues for tags plugin