fixes profile edit bug