Fix invalid warnings Fix #147