Error message reporting wrong property to console