Petition types functions FIX

Fixed some petition types functions bugs