Memory simulation model bug fix