fix the bug in determining a plain object