[#18] Fix wrong logic for setting the source active field