fix for custom posttype meta save