fix warnings in 0.4