Fixed non-threadsafe region in Idas, #531