minor StartEnd bug fix