bugfixing permission