fixing the problem with double constant initialization