There is a problem with the transistor or voltage. There are two solutions.
1. The transistor level has become lower. You can add one more level of transistor.
2. In order to increase the output voltage to facilitate driving the field effect transistor, an open collector can be used, such as using 74LS07.