Fixing contrib bug and updating permalinks