applied fix to repeated job lock