Fixed errors from AisLib changes