Fix permissions table types