fixed bug with rights management