fixed sim bug