fixes segfault when run on dover
removes warnings on dover