Fix gcc compiler error

Moved ann class variable initialization into constructor.