fixed synced method when remote branch is empty