fix post null errors