Fixed some issues with problem detail