fixed runtime errors of unnecessary libraries