Fixed minor bugs with project permissions