fix rights stuff