fix for exception