Fixed wrong index value on push.