fixed undefined profile