fix initialization (thanks @ancorgs)