fix notice when setting post property