Fixes for custom posts
Fixes for custom posts saving