more 904 trouble

Well it is full of fluid engine revs fine, if you put it into 1,2or3 it acts like it dosnt know wich gear to go to. The cars moves forward a little and stops and keeps repeating when in p or n it idles fine im wondering if it maybe related to the valvebody?