fixed Fatal error: Wrong parameters for Exception