Thousands flee in Malaysia