fix zero index model bug