fixed nil posts bug