fixed issues in Profile and Event