fixed error message at opening