Try to fix format of credentials.