Fixed missing permissions, closes #637