fix problem with p.close.btn