fixed problems with alternative_entry

I've fixed issue with alternative_entry on debian, so please merge this pull request