fix spaces bug with empty event