Fix conditionals only rendering last item in block