Window indexing starting from 1 instead of 0