bug fixes
fix start by 0 error