fix bug of processing unregistered build tags