You should be able to choose which lot to allocate to the sell. If you don't choose the broker will automatically choose FIFO.