tmp fix for exception that keeps occuring