fix show profile code