Removed internal session free and removed extra spaces