Sync with 1.7.0.5