Do you have "Attack invisible" enabled?