fix closing p