Fix date error in data
Last fixes to perms and templates