fix php end block