fixed local predict bug