fix shallow problem