fixed: bug whith the permissions