Fixed warnings (#583)