kickstart only engages in gear

Hello everyone….so I have a 96 honda 300 last night I took apart left side engine cover to ispect and test stator when I pulled it off the shift shaft came out with it upon putting it back together I was having truble getting it back in so I tried shifting the shaft I heard a lud click ended up getting it back together but now the kickstart only engages when the bike is in gear
Please help thanks

kickstart only engages in gear

Hello everyone….so I have a 96 honda 300 last night I took apart left side engine cover to ispect and test stator when I pulled it off the shift shaft came out with it upon putting it back together I was having truble getting it back in so I tried shifting the shaft I heard a lud click ended up getting it back together but now the kickstart only engages when the bike is in gear
Please help thanks