fix small bug with spaces in closing tag