fixed exception thing