fixed bugs in constants