fixed profile js bug