I think thats actually the expected result. ChatGPT only does language modeling and cannot handle logic or maths. The only reason it seems to do okay with coding is that the GPT-3.5 series have been specifically trained on a blend of text