Wrong detection of an empty object. Not yet finished.