minor fix on build plugin