fixed a bug where a forward declaration was identified as a class