Display some error messages and fix simulation