Fixed permission issue (closes #1)