fixing simple type missmatch