constants bug fix