fixes exceptions that were occurring in chrome