fix post on init bug