fixed clearing profile when showing page