Fix #4: remove compile warnings due to incompatible method signatures