Multicore sim bug fixing