fixed bug with type on variable name