fixed the get profile call, closes #320