Mono compatibility fix