removed bug with moment date initialization