fix expected end