fixed bug with constants