If you try to craft a jungle fence, you will get a spruce fence. Same for gates. Screenshot depicts the recipe for gates, but fences have the same bug.
Related issues
Attachments
Comments

[media]

This issue has been reported already. It has been linked to the original bugreport.
Please search before reporting any bugs, as it's likely that one exists already.