Fixed global type mismatch