Implemented the strict prepared permissions and fixed a little typo