Another slight fix to handle bloody http promises, so nice, but so annoying