Fixed a fking stupid bug with the api