fixed #384 : Changed index of element