fixed profile parsing