Fixed API call

This affects chat and login