fixed bug about nested tap