fixing duplicate entries bug in the api-src and spi-sink dict