fixed bug with const | var types