fix angle conversion problem