public not public var, adding in missing include

Adding in to more bug fixes, thanks to mark for reporting them.