Fixed duplicate jobs bug