p placement bug fixed