Fixed sim bug