I have already the answer, it was in the tax treaty between my country and the country of incorporation. It was stated that if the person who receive the royalties is also involved in the company then, it is considered distributed profits and the tax is the same than dividends.Tax adviser is the best choice to get the right answer.