fixing indexes for adding board