bug with constant variables