custom exception fix