okay another thread(starter related)

okay heres my problem…the starter pops out and spins when its out of the transmission but when its in it it doesnt spin it just engages…any ideas?