Fix incorrect permissions, remove debug stuff