ChatGPT is still an underdevelopment platform, due to which such errors can arise. With time as ChatGPT is improved such errors will be reduced.