removed unused variables [fix GH-49]
fixed broken permalink