Remove 2 pointless checks that were causing memory errors.