fixed exception not taking keyword parameter