fixed Exception for non JavaBean classes