fix post/index boolean issue