Remove debug, fix dodgy permission