Fix bugs with api controller