fixed bug on function overriding
fixed type-hint with global classes