incorrect initialization fixed