fix notice error for post object