Fixes commandStack initialization