metabox return null when post not available